<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="VotingsViewDlg" widgetVar="VotingsViewDialog" modal="true" resizable="false"  appendTo="@(body)" header="#{myBundle.ViewVotingsTitle}" closeOnEscape="true">

            <h:form id="VotingsViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{votingsController.selected != null}">

                        <h:outputText value="#{myBundle.ViewVotingsLabel_id}"/>
                        <h:outputText value="#{votingsController.selected.id}" title="#{myBundle.ViewVotingsTitle_id}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_frage}"/>
                        <h:outputText value="#{votingsController.selected.frage}" title="#{myBundle.ViewVotingsTitle_frage}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_created}"/>
                        <h:outputText value="#{votingsController.selected.created}" title="#{myBundle.ViewVotingsTitle_created}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer1}"/>
                        <h:outputText value="#{votingsController.selected.answer1}" title="#{myBundle.ViewVotingsTitle_answer1}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers1}"/>
                        <h:outputText value="#{votingsController.selected.answers1}" title="#{myBundle.ViewVotingsTitle_answers1}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer2}"/>
                        <h:outputText value="#{votingsController.selected.answer2}" title="#{myBundle.ViewVotingsTitle_answer2}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers2}"/>
                        <h:outputText value="#{votingsController.selected.answers2}" title="#{myBundle.ViewVotingsTitle_answers2}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer3}"/>
                        <h:outputText value="#{votingsController.selected.answer3}" title="#{myBundle.ViewVotingsTitle_answer3}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers3}"/>
                        <h:outputText value="#{votingsController.selected.answers3}" title="#{myBundle.ViewVotingsTitle_answers3}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer4}"/>
                        <h:outputText value="#{votingsController.selected.answer4}" title="#{myBundle.ViewVotingsTitle_answer4}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers4}"/>
                        <h:outputText value="#{votingsController.selected.answers4}" title="#{myBundle.ViewVotingsTitle_answers4}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer5}"/>
                        <h:outputText value="#{votingsController.selected.answer5}" title="#{myBundle.ViewVotingsTitle_answer5}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers5}"/>
                        <h:outputText value="#{votingsController.selected.answers5}" title="#{myBundle.ViewVotingsTitle_answers5}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer6}"/>
                        <h:outputText value="#{votingsController.selected.answer6}" title="#{myBundle.ViewVotingsTitle_answer6}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers6}"/>
                        <h:outputText value="#{votingsController.selected.answers6}" title="#{myBundle.ViewVotingsTitle_answers6}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer7}"/>
                        <h:outputText value="#{votingsController.selected.answer7}" title="#{myBundle.ViewVotingsTitle_answer7}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers7}"/>
                        <h:outputText value="#{votingsController.selected.answers7}" title="#{myBundle.ViewVotingsTitle_answers7}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answer8}"/>
                        <h:outputText value="#{votingsController.selected.answer8}" title="#{myBundle.ViewVotingsTitle_answer8}"/>

                        <h:outputText value="#{myBundle.ViewVotingsLabel_answers8}"/>
                        <h:outputText value="#{votingsController.selected.answers8}" title="#{myBundle.ViewVotingsTitle_answers8}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="VotingsViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
